home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / lib / geometry / transform3 / ctm3tetrad.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-26  |  1.2 KB  |  39 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9.  
  10. /* Authors: Charlie Gunn, Pat Hanrahan, Stuart Levy, Tamara Munzner, Mark Phillips */
  11.  
  12. #include "transform3.h"
  13.  
  14. /*-----------------------------------------------------------------------
  15.  * Function:    Ctm3Tetrad
  16.  * Description:    concatenate a transform with given columns to the right
  17.  *            of another transform
  18.  * Args:    T: the transform to modify
  19.  *        x: column 1 of right factor
  20.  *        y: column 2 of right factor
  21.  *        z: column 3 of right factor
  22.  *        w: column 4 of right factor
  23.  * Returns:    nothing
  24.  * Author:    hanrahan, mbp
  25.  * Date:    Thu Aug  8 14:54:56 1991
  26.  * Notes:    sets T to T * S, where S is the transform with
  27.  *          columns x, y, z, w.
  28.  */
  29. void
  30. Ctm3Tetrad( T, x, y, z, w )
  31.     Transform3 T;
  32.     HPoint3 *x, *y, *z, *w;
  33. {
  34.     Transform3 Ta;
  35.  
  36.     Tm3Tetrad( Ta, x, y, z, w );
  37.     Tm3Concat(Ta, T, T);
  38. }
  39.